package model;

import javax.xml.bind.annotation.*;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * Author: Kostika Gorica
 * User:   kosta
 * Date:   3/10/13
 * Time:   10:25 PM
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlAccessorOrder(XmlAccessOrder.ALPHABETICAL)
@XmlRootElement(name = "pagesa")
public class Pagesa {
    private int id;
    private int prodhimiID;
    @XmlElement(nillable = true)
    private String kostoName;
    private double vleraTotale;
    private double vleraEfektive;
    @XmlElement(nillable = true)
    private Date dataPageses;
    @XmlElement(nillable = true)
    private Date dataVeprimit;

    public Pagesa(){
        this(0,0,"",0.0,0.0,new Date(),new Date());
    }

    public Pagesa(int id, int prodhimiID, String kostoName, double vleraTotale, double vleraEfektive, Date dataPageses, Date dataVeprimit) {
        this.id = id;
        this.prodhimiID = prodhimiID;
        this.kostoName = kostoName;
        this.vleraTotale = vleraTotale;
        this.vleraEfektive = vleraEfektive;
        this.dataPageses = dataPageses;
        this.dataVeprimit = dataVeprimit;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getProdhimiID() {
        return prodhimiID;
    }

    public void setProdhimiID(int prodhimiID) {
        this.prodhimiID = prodhimiID;
    }

    public String getKostoName() {
        return kostoName;
    }

    public void setKostoName(String kostoName) {
        this.kostoName = kostoName;
    }

    public double getVleraTotale() {
        return vleraTotale;
    }

    public void setVleraTotale(double vleraTotale) {
        this.vleraTotale = vleraTotale;
    }

    public double getVleraEfektive() {
        return vleraEfektive;
    }

    public void setVleraEfektive(double vleraEfektive) {
        this.vleraEfektive = vleraEfektive;
    }

    public Date getDataPageses() {
        return dataPageses;
    }

    public void setDataPageses(Date dataPageses) {
        this.dataPageses = dataPageses;
    }

    public Date getDataVeprimit() {
        return dataVeprimit;
    }

    public void setDataVeprimit(Date dataVeprimit) {
        this.dataVeprimit = dataVeprimit;
    }
}
